//Lindsay Ergenekan 
//ergenekl@onid.oregonstate.edu
//CS311-400
//Homework3 
//


#include <stdio.h> 
#include <getopt.h> 
#include <time.h> 
#include <stdlib.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <signal.h>

#include <fcntl.h>



/*static void sigusr1(int sig)
{ 
    printf("USRSIG1 FOUND! \n");
}
*/

static void sigHanlder(int sig)
{
static int count = 0;

if (sig == SIGINT) 
{ 
   count ++; 
   printf("Caught sigint(%d) \n", count); 
   return;
} 
printf("Caught sigquit - that's all folks! \n");
exit (EXIT_SUCCESS);
}
   
int main (int argc, char *argv[])
{ 
/*   int j;

   if (signal(SIGINT, sigusr1) == SIG_ERR)
      printf("Signal");

  for (j = 0; ; j++)
  { 
     printf("%d \n", j);
     sleep (3);
  }
*/

} 
